

//通过 on 监听数据
process.on("message", (chunk)=>{
    console.log(chunk);
})

//子进程向父进程发送消息
process.send("this is message from child parent process"); 

